import request from '@/utils/request'

// 添加药品
export function addMedicine(value) {
  return request({
    method: "POST",
    url: "/med-admin-drugs/drugs/add",
    data: value
  })
}

// 查询药品列表
export function listMedicine(params) {
  return request({
    method: "GET",
    url: "/med-admin-drugs/drugs/list",
    params: params
  })
}

// 修改药品
export function updateMedicine(data) {
  return request({
    method: "POST",
    url: "/med-admin-drugs/drugs/update",
    data: data
  })
}

// 删除药品
export function deleteMedicine(id) {
  return request({
    method: "GET",
    url: "/med-admin-drugs/drugs/delete",
    params: { medicineId: id }
  })
}